package com.synjones.beijing
{
    import mx.rpc.soap.mxml.WebService;
    import mx.rpc.AbstractService;
    import mx.rpc.events.ResultEvent;
    import mx.rpc.events.FaultEvent;
    import mx.controls.Alert;
    public final class ServiceLocator
    {
        private static var IOService:AbstractService;
    
        public static function getRestaurantService():AbstractService
        {
           if (IOService == null) {
                var ws:WebService = new WebService();
                ws.wsdl = "http://localhost/aaa/IOService.asmx?WSDL";
                //ws.wsdl = "http://localhost:6567/IOService/IOService.asmx?WSDL";
                ws.useProxy = false;
                ws.showBusyCursor = true;
                ws.loadWSDL();
                IOService = ws;
            }
            return IOService;
        }
    }
}